package com.leizi.igym.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.leizi.igym.domain.Employee;
import com.leizi.igym.dto.EmployeeAddDTO;
import com.leizi.igym.dto.EmployeePageQueryDTO;
import com.leizi.igym.vo.EmployeeVO;

import java.util.List;

/**
* @author PC
* @description 针对表【t_employee(员工表)】的数据库操作Service
* @createDate 2024-04-03 14:28:34
*/
public interface EmployeeService extends IService<Employee> {

    QueryWrapper<Employee> getQueryWrapper(EmployeePageQueryDTO employeePageQueryDTO);


    EmployeeVO getEmployeeVO(Employee employee);

    List<EmployeeVO> getEmployeeVOPage(Page<Employee> taskPage);

    boolean removeEmpBatch(List<Long> ids);

    EmployeeVO getEmpById(Long id);

    boolean identifyEMp(Long id, Integer isIdentify);

    long addEmp(EmployeeAddDTO dto);

    boolean updateEmpInAdmin(Employee employee);

}
